package com.songcha.module_bookdetail.ui.dialog

import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.songcha.library_common.ui.dialog.CustomDialog
import com.songcha.library_common.util.dp2px
import com.songcha.module_bookdetail.R

class BookReadTipDialog(context:Context):CustomDialog(context) {
    init {
        setDialogTitle("")
        setDialogMsg("")
        setShowBtn(false)
        setWidth(100.dp2px())
        setBackgroundColor(Color.TRANSPARENT)
    }

    override fun hasView(): Boolean {
        return true
    }

    override fun getView(root: ViewGroup): View? {
        val view=LayoutInflater.from(context).inflate(R.layout.bookdetail_dialog_bookread_tip,root,false)
        return view
    }
}